package com.xuecheng.api.media;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.api.media.model.vod.VodUploadRequest;
import com.xuecheng.api.media.model.vod.VodUploadToken;
import io.swagger.annotations.ApiOperation;

/**
 * <p></p>
 *
 * @Description:
 */
public interface MediaApi {

    @ApiOperation("获得文件上传凭证")
    VodUploadToken generateVodUploadToken(VodUploadRequest request);


    @ApiOperation("刷新文件上传凭证")
    VodUploadToken refreshVodUploadToken(String videoId);


    @ApiOperation("保存媒资信息")
    MediaDTO createMedia(MediaVO mediaVO);

    @ApiOperation("媒资信息预览")
    String previewMedia(Long mediaId);

//    @ApiOperation("根据id查询媒资信息-微服务远程调用")
//    RestResponse<MediaDTO> getMediaById4s(Long mediaId);
}
